<template>
  <el-card class="box-card" shadow="never">
    <div slot="header" class="clearfix">
      <span>回收站</span>
    </div>
    <el-table
      :data="recordSetData"
      stripe
      style="width: 100%"
    >
      <el-table-column
        label="实体类名称"
        prop="shiTiLMC"
      >
      </el-table-column>
      <el-table-column
        label="实体类代号"
        prop="shiTiLDH"
      >
      </el-table-column>
      <el-table-column
        label="应用系统"
        prop="yingYongXT.name"
      >
      </el-table-column>
      <el-table-column
        label="实体类类别"
        prop="shitiLLB.name"
      >
      </el-table-column>
      <el-table-column
        label="操作"
      >
        <template slot-scope="scope">
          <el-button type="text" @click.stop="recallShiTiL(scope.row)">复原</el-button>
        </template>
      </el-table-column>
    </el-table>
    <!--    <p>__id为：{{id}}</p>-->
    <!--    <pre>{{recordSetData}}</pre>-->
  </el-card>
</template>

<script>

export default {
  name: 'ShiTiLrecall',
  props: {
    recordSetData: {
      type: Array,
      required: true,
    }
  },
  data() {
    return {
      id: null
    }
  },

  methods: {
    recallShiTiL(record) {
      const data = record.getJSON()
      this.$emit('handleRecallShiTiL', data)
    }
  }
}
</script>

<style scoped>

</style>
